﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DFGK_WMS.Context.Migrations
{
    public partial class 员工表修改为code : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "DepartmentId",
                table: "T_Employee");

            migrationBuilder.AddColumn<string>(
                name: "DepartmentCode",
                table: "T_Employee",
                type: "nvarchar(20)",
                maxLength: 20,
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "DepartmentCode",
                table: "T_Employee");

            migrationBuilder.AddColumn<int>(
                name: "DepartmentId",
                table: "T_Employee",
                type: "int",
                nullable: false,
                defaultValue: 0);
        }
    }
}
